<!DOCTYPE html>
<html>
    <head>
        <title>小郑同学</title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
     
     <style>
         .hengtu{
    width: 100%;
    height: 316px;
    background-image: url(./images/fen1.jpg);
    background-size: 100%;
}
.beaty{
    width: 100%;
    height: 84px;
    padding-top: 20px;
    text-align: center;
    
}
.beaty>p:nth-child(1)>a{
    font-size: 26px;
    font-family: "宋体";
}
.beaty>p:nth-child(1)>a>span{
    color: rgb(178, 34, 34);
}
.beaty>p:nth-child(2)>a{
    font-family: "raleway";
    letter-spacing: 3px;
    font-size: 13px;
}
aside>.fen{
    width: 974px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
aside>.fen>li{
    cursor: pointer;
    line-height: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 80px;
   border: 1px solid rgba(226,226,226,1);
    font-family:" 微软雅黑";
    font-size: 14px;
    padding: 12px 10px;
    text-align: center;
    margin-left: 15px;
}
.sort{
    width: 1024px;
   height: 680px;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 50px;
    /* float: left; */
    
}
.sort>li{
    width: 255.5px;
    height: 329px;
    float: left;
}

.sort>li>a{
    display: block;
}
.sort>li>a>div{
    width: 252.5px;
    height: 252.5px;
    overflow: hidden;
}

.sort>li>a>div>img{
    width: 252.5px;
    height: 252.5px;
    transition: all ease-in-out .2s;
}
.sort>li>a>div>img:hover{
     transform: scale(1.2);
     transition: all .6s ease;
     
}
.sort>li>a>h3{
    width: 100%;
    height: 19.2px;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #adadad;
    font-family:"微软雅黑";
    font-weight: normal;
}
.sort>li>p{
    font-size: 18px;
    text-align: center;
    color: #000000;
 font-family: "georgia";
 /* font-family: "Raleway"; */
}
     </style>
    </head>
    <body>
         <header></header>
         <aside>
             <div class="hengtu"></div>
             <div class="beaty">
                <p><a href="#">南<span>之</span>嘉木</a></p>
                <p><a href="#">
                    Chinese Tea</a></p>
            </div>
            <ul class="fen">
                <li>烏龍</li>
                <li>白茶</li>
                <li>紅茶</li>
                <li>緑茶</li>
            </ul>
            
                <ul class="sort">
                    <li><a href="#">
                            <div>
                                <img src="./images/14.webp" alt="">
                            </div>
                            <h3>洞庭山·碧螺春</h3>
                        </a>
                        <p>¥700.00</p>
                    </li>
                    <li><a href="#">
                            <div>
                                <img src="./images/15.webp" alt="">
                            </div>
                            <h3>正山小种</h3>
                        </a>
                        <p>¥99.00</p>
                    </li>
                    <li><a href="#">
                            <div>
                                <img src="./images/11.webp" alt="">
                            </div>
                            <h3>正安白茶</h3>
                        </a>
                        <p>¥500.00</p>
                    </li>
                    <li><a href="#">
                            <div>
                                <img src="./images/23.webp" alt="">
                            </div>
                            <h3>铁观音</h3>
                        </a>
                        <p>¥555.00</p>
                    </li>
                    
                    <li><a href="#">
                            <div>
                                <img src="./images/17.webp" alt="">
                            </div>
                            <h3>凤凰单枞</h3>
                        </a>
                        <p>¥1,599.00</p>
                    </li>
                    <li><a href="#">
                            <div>
                                <img src="./images/29.webp" alt="">
                            </div>
                            <h3>西湖龙井</h3>
                        </a>
                        <p>¥600.00</p>
                    </li>
                    <li><a href="#">
                            <div>
                                <img src="./images/20.webp" alt="">
                            </div>
                            <h3>祁门红茶</h3>
                        </a>
                        <p>¥499.00</p>
                    </li>
                    <li><a href="#">
                        <div>
                            <img src="./images/13.webp" alt="">
                        </div>
                        <h3>六安瓜片</h3>
                    </a>
                    <p>¥555.00</p>
                </li>
                </ul>
           
         </aside>
         <footer></footer>
    </body>
</html>
<script src="./js/jQuery.js"></script>
<script>
    $("header").load("header.html");
    $("footer").load("foot.html");

    let oli = $(".fen").eq(0).children();
    for (let i = 0; i < oli.length; i++) {
        oli[i].onclick = function () {
            for (var j = 0; j < oli.length; j++) {
                oli[j].style.border = "1px solid rgba(226,226,226,1)";
            }
            oli[i].style.border = "1px solid #000";
           $(".sort").eq(0).css({
               height:350
           })
            if(i==0){
                $(".sort").eq(0).html(`<li><a href="#">
                            <div>
                                <img src="./images/23.webp" alt="">
                            </div>
                            <h3>铁观音</h3>
                        </a>
                        <p>¥555.00</p>
                    </li>
                    <li><a href="#">
                            <div>
                                <img src="./images/17.webp" alt="">
                            </div>
                            <h3>凤凰单枞</h3>
                        </a>
                        <p>¥1,599.00</p>
                    </li>
            `);
            }
            if(i==1){
                $(".sort").eq(0).html(` <li><a href="#">
                            <div>
                                <img src="./images/11.webp" alt="">
                            </div>
                            <h3>正安白茶</h3>
                        </a>
                        <p>¥500.00</p>
                    </li>`);
            }
            if(i==2){
                $(".sort").eq(0).html(` <li><a href="#">
                            <div>
                                <img src="./images/15.webp" alt="">
                            </div>
                            <h3>正山小种</h3>
                        </a>
                        <p>¥99.00</p>
                    </li>
                    <li><a href="#">
                            <div>
                                <img src="./images/20.webp" alt="">
                            </div>
                            <h3>祁门红茶</h3>
                        </a>
                        <p>¥499.00</p>
                    </li>`);
            }
            if(i==3){
                $(".sort").eq(0).html(`  <li><a href="#">
                            <div>
                                <img src="./images/14.webp" alt="">
                            </div>
                            <h3>洞庭山·碧螺春</h3>
                        </a>
                        <p>¥700.00</p>
                    </li><li><a href="#">
                            <div>
                                <img src="./images/29.webp" alt="">
                            </div>
                            <h3>西湖龙井</h3>
                        </a>
                        <p>¥600.00</p>
                    </li>
                    <li><a href="#">
                        <div>
                            <img src="./images/13.webp" alt="">
                        </div>
                        <h3>六安瓜片</h3>
                    </a>
                    <p>¥555.00</p>
                </li>`);
            }
        }
    }
</script>